<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
    <title>地图展示</title>
    	<style type="text/css">
			#add,#btnLogin,#btnRegister{
				width:90px;height:20px;background-color:#FF6633;
			}
			.winbox{
				width: 270px;	
			}
	    </style>
	    <link href="../css/style.css" rel="stylesheet" type="text/css" />
	    <link href="../css/wbox/wbox.css" rel="stylesheet" type="text/css" />
	    <script 
	    	src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA&hl=zh-CN&sensor=false"
	    	type="text/javascript">
		</script>
		<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="../js/contextmenu.js"></script>
		<script type="text/javascript" src="../js/oper.js"></script>
		<script type="text/javascript" src="../js/map.js"></script>
		<script type="text/javascript" src="../js/wbox.js"></script>
		<script type="text/javascript">
		</script>
    </head>
  	<body topmargin="0" leftmargin="0">
		<!-- 地图画板 -->
       	<table  width="100%" id="table" height="100%" rightmargin="0">
			<tr align="right" bgcolor="#cccccc">				
				<div id="center"></div>	
			    <td width="30%" align="left">	
			    <%
			    	String logName = (String)(request.getSession().getAttribute("userName"));
			    	if(logName == null || "".equals(logName)){
			    		logName = "游客";
			    	}
			    %>			  
			    	<B> <%=logName %> ,欢迎你...</B>
				</td>
			    <td width="70%">				     
				      <button id="add" onclick=add() >增加机构</button>
					  <button id="add" onclick="javascript:doStat('<%=request.getContextPath() %>');" >统计</button>
					  <button id="add" >测距</button>
					  <button id="btnRegister" onclick="window.print()">打印本页</button>
					  <button id="btnRegister" onclick="window.location='mailto:someone@microsoft.com?subject=Hello%20again'">发送邮件</button>
					  <button id="btnRegister" onclick="window.parent.open('http://ditu.google.com');">链接</button>
                     <%-- <button id="btnLogin" >登录</button>
					   <button id="btnRegister"  >注册</button>--%>
					   <button id="btnRegister" onclick="javascript:logout('<%=request.getContextPath() %>');">注销</button>
				</td>
			</tr>
			<tr height="100%">
				<td colspan="2">
					<div id="map" style="width: 100%; height: 530px"></div>
					<ul id="popupmenu" class="pmenu">
						<li class="search"><a id="searchbox" href="#" onclick="showSearchWin();hidePopupMenu();">搜索</a></li>
						<li style="border-top: solid 1px #CCC;"></li>
				    	<li><a href="#" onclick='' class="parent">缩放地图</a>
						    <ul class="pmenu">
						      <li class="zoomin"><a href="#" onclick="zoomIn();hidePopupMenu();">放大</a></li>
						      <li class="zoomout"><a href="#" onclick="zoomOut();hidePopupMenu();">缩小</a></li>
						    </ul>
					    </li>
					    <li class="here"><a href="#" onclick="centreMapHere();hidePopupMenu();">以此居中</a></li>
					    <li style="border-top: solid 1px #CCC;"></li>
					    <li class="begin"><a href="#" onclick="centreMapHere();hidePopupMenu();">开始</a></li>
					    <li class="end"><a href="#" onclick="centreMapHere();hidePopupMenu();">结束</a></li>
					</ul>
				</td>
			</tr>
		</table>	
	</body>
</html>


